<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<%@include file="/common/javascript.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
		<script language="Javascript" type="text/javascript">;
			function OnConnect() {
				window.ViewerX.Disconnect();
				window.ViewerX.HostIP = "10.6.1.19";
				window.ViewerX.Port = "5900";
				window.ViewerX.Connect();
			}
			function OnDisconnect() {
				window.ViewerX.Disconnect();
			}
			
			function OpenChat(){
				window.ViewerX.OpenChat();
			}
			function broadcast(){
				alert("广播");
				$.ligerDialog.prompt('提示内容','初始化多选框值',true, 
						function (yes,value) {
							if(yes){
								$.ajax({
									   type: "POST",
									   url: "${ctx}/qso/teach/beganTeach",
									   data:{vmId:$("#vmIp").val(),msg:value},
									   success: function(msg){
									    // alert( "Data Saved: " + msg );
									   }
									});
							}
						}
				);
			}
		</script>
</head>
<!-- <body onload="OnConnect();"> -->
<body>
		<div style="width: 100%">
			<input onclick="OnConnect()" type="button" value="Connect">
			<input onclick="OnDisconnect()" type="button" value="Disconnect">
			<input onclick="OpenChat()" type="button" value="OpenChat">
			<input onclick="broadcast()" type="button" value="教学">
		</div>
		<p>
			<OBJECT id="ViewerX" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid"
				height="650px" width="100%" classid="" VIEWASTEXT codebase="${ctx}/static/vnc/scvncctrl.cab">
				<PARAM NAME="HostIP" VALUE="">
				<PARAM NAME="Port" VALUE="5900">
				<PARAM NAME="Password" VALUE="123">
				<PARAM NAME="CustomCompression" VALUE="0">
				<PARAM NAME="CustomCompressionLevel" VALUE="6">
				<PARAM NAME="JPEGCompression" VALUE="1">
				<PARAM NAME="JPEGCompressionLevel" VALUE="6">
				<PARAM NAME="CopyRect" VALUE="1">
				<PARAM NAME="EmulateThreeButton" VALUE="1">
				<PARAM NAME="SwapMouseButtons" VALUE="0">
				<PARAM NAME="Encoding" VALUE="7">
				<PARAM NAME="ViewOnly" VALUE="0">
				<PARAM NAME="RestrictPixel" VALUE="0">
				<PARAM NAME="ScaleNum" VALUE="1">
				<PARAM NAME="ScaleDen" VALUE="1">
				<PARAM NAME="ScaleEnable" VALUE="0">
				<PARAM NAME="FullScreen" VALUE="0">
				<PARAM NAME="LocalCursor" VALUE="0">
				<PARAM NAME="MessageBoxes" VALUE="1">
				<PARAM NAME="DisableClipboard" VALUE="1">
				<PARAM NAME="ThumbnailMode" VALUE="0">
				<PARAM NAME="LoginType" VALUE="0">
				<PARAM NAME="MsUser" VALUE="">
				<PARAM NAME="MsDomain" VALUE="">
				<PARAM NAME="MsPassword" VALUE="">
				<PARAM NAME="ProxyIP" VALUE="">
				<PARAM NAME="ProxyPort" VALUE="-1">
				<PARAM NAME="ProxyUser" VALUE="">
				<PARAM NAME="ProxyPassword" VALUE="">
				<PARAM NAME="ProxyType" VALUE="0">
				<PARAM NAME="ConnectionBar" VALUE="1">
				<PARAM NAME="StretchMode" VALUE="0">
				
				
				<param name="RemoteInputEnabled" value="1">
				
				<param name="Chat" value="1">
			</OBJECT>
		</p>
</body>
</html>